/** 手机号 */
export const phonePattern = {
  pattern: /^1[0-9]{10}$/,
  message: '手机号格式不正确'
}

/** 密码 */
export const passwordPattern = {
  pattern: /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,18}$/,
  message: '密码长度6-18，由字母和数字组成'
}

export const nickNamePattern = {
  pattern: /^.{2,6}$/,
  message: '昵称长度2-6'
}

export const emailPattern = {
  pattern: /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
  message: '邮箱格式不正确'
}
